package com.yanqu.road.server.timer.twins;

import com.yanqu.road.server.manager.activity.twins.CrossTwinsActivityGroup;
import com.yanqu.road.server.manager.activity.twins.CrossTwinsMgr;
import com.yanqu.road.server.manager.activity.twins.activity.CrossTwinsActivity;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 *
 */
public class CrossTwinsSlowTimerTask extends GeneralTask {

    @Override
    public void doRun() {
        long now = System.currentTimeMillis();

        for (CrossTwinsActivityGroup activityGroup : CrossTwinsMgr.getActivityGroupMap().values()) {
            for (CrossTwinsActivity activity:activityGroup.getActivityMap().values()){
                try {
                    activity.slowLogic();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }

    }
}
